package com.zhentao.feign;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhentao.api.pay.PayClientApi;
import com.zhentao.api.user.UserClientApi;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.pay.pojo.ApUserMembership;
import com.zhentao.model.pay.pojo.ApUserVip;
import com.zhentao.model.user.pojo.ApUser;

import com.zhentao.service.ApUserVipService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PayClient implements PayClientApi {
    @Resource
    ApUserVipService apUserVipService;

    @Override
    public ApUserVip selectOne(Integer userId) {
        QueryWrapper<ApUserVip> wrapper=new QueryWrapper<>();
        wrapper.lambda().eq(ApUserVip::getUserId,userId);
        ApUserVip apUserVip = apUserVipService.getOne(wrapper);
        return apUserVip;
    }
}




